package multipowny.ssrr;

public class ChanceMoveBack extends Chance{
	int amountOfPlaces;
	MultipownyActivity multipownyActivity;
	
	public ChanceMoveBack(String theTitel, String theStory, int theAmountOfPlaces, int theChanceID){
		super();
		titel = theTitel;
		story = theStory;
		amountOfPlaces = theAmountOfPlaces;
		chanceID = theChanceID;
	}
	
	public void onChanceMoveBack(){
		if(multipownyActivity.activePlayer.playerID == 2){
			multipownyActivity.activePlayer.playerID = 39;
		}else
			multipownyActivity.activePlayer.playerID=multipownyActivity.activePlayer.playerID-3;
	}
}